<?php
namespace app\common\model;

use think\Model;

class GoodsCategory extends Model
{
	public function goodsList()
    {
        return $this->hasMany('Goods', 'cateid', 'id')->field('id,cateid,title,image,describe,cost,price')->where("status",1);
    }
}